<template>
	<view class="warp">
		<view class="qrcode">
			<image src="https://7463-tcb-bzd0jghy0g4xhlb863579-8cd72f-1304347316.tcb.qcloud.la/support/qrcode.png" mode="widthFix"></image>
			<text>扫码参与互动</text>
		</view>
		
		<view class="list-box">
			<view class="list-item" v-for="(i,index) in arr" :key="index">
				<view class="answer-box" >
					{{i.answer}}
				</view>
				<view class="zan-box">
					{{i.zan}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				arr:[]
			};
		},
		created() {
			setInterval(this.getList,5000)
		},
		methods:{
			getList(){
				/* uni.showLoading({
					title:'加载中···',
					mask:true
				}) */
				uniCloud.callFunction({
					name:'supportGetPcList'
				}).then((res)=>{
					this.arr = res.result.data
					console.log(this.arr)
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	page{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		background: #000;
	}
.warp{
	width: 1600px;
	height: 900px;
	margin: 0 auto;
	position: relative;
	background: url(https://7463-tcb-bzd0jghy0g4xhlb863579-8cd72f-1304347316.tcb.qcloud.la/support/pc.jpg) no-repeat center center;
	background-size: 100% 100%;
}
.list-box{
		margin-top: 60px;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		width: 1395px;
		// height: 470px;
		margin: 0 auto;
		margin-top: 240px;
	}
	.list-item{
		width: 660px;
		height: 80px;
		background: #fff;
		border: 2px solid #cc0000;
		border-radius: 15px;
		display: flex;
		flex-direction: row;
		margin-bottom: 24px;
		font-size: 26px;
		overflow: hidden;
		view{
			// height: 100% !important;
			color: #000;
		}
		.answer-box{
			// padding: 10rpx 0;
			width: 80%;
			height: 100% !important;
			line-height: 46rpx;
			padding-left: 15px;
			padding-right: 15px;
			font-size: 20px;
			display: flex;
			flex-direction: row;
			align-items: center;
		}
		.zan-box{
			// height: 100% !important;
			width: 20%;
			border-left: 2px solid #cc0000;
			color: #fff;
			text-align: center;
			display: flex;
			font-weight: bold;
			font-size: 38px;
			flex-direction: row;
			align-items: center;
			justify-content: center;
			background: #c10021;
		}
		
	}
	
	.qrcode{
		width: 200px;
		// height: 200px;
		position: absolute;
		bottom: 30px;
		right: 30px;
		display: flex;
		flex-direction: column;
		image{
			width: 100%;
		}
		text{
			font-size: 26px;
			line-height: 40px;
			color: #DD524D;
			font-weight: bold;
			text-align: center;
		}
	}
</style>
